package com.scau.handleException;

/*
* 错误枚举类
* */

import com.sun.xml.internal.bind.v2.model.annotation.FieldLocatable;

public enum ResultCode {
    SUCCESS("0000","成功"),
    Failed("1111","失败"),

    REQUESTBODY_ERROR("1001","请求参数错误！"),
    USER_NOT_EXIST("1002","用户不存在"),
    USER_INFO_ERROR("1003","用户名或密码错误"),

    GOODS_STOCK_ERROR("1010","商品库存不足，请等待品牌商更新库存"),
    //FileUtil保存文件出错
    FILE_SAVE_ERROR("1011","服务器繁忙，请稍后操作"),
    //FileUtil删除文件出错
    FILE_DEL_ERROR("1012","要删除的图片文件不存在，请联系管理员"),
    //取消订单时，品牌商金额不足抛出的异常
    ORDER_CANCEL_ERROR("1013","品牌商金额不足，无法取消订单");


    //结果码
    private String status;
    //结果码描述
    private String msg;

    ResultCode(String status,String msg){
        this.status = status;
        this.msg = msg;
    }

    public String getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }

}
